<template>
  <div>
    <TypeNav/>
    <ListContainer/>
    <Recommend/>
    <Rank/>
    <Like/>
    <Floor v-for="(item,index) in floorList" :key="item.id" :item="item" :index="index"/>
    <Brand/>
  </div>
</template>

<script>
import { mapState } from 'vuex'
import TypeNav from '../../components/TypeNav'
import ListContainer from './ListContainer'
import Recommend from './Recommend'
import Rank from './Rank'
import Like from './Like'
import Floor from './Floor'
import Brand from './Brand'

export default {
  name: 'ShpHome',
  components: {
    TypeNav,
    ListContainer,
    Recommend,
    Rank,
    Like,
    Floor,
    Brand
  },
  computed: {
    ...mapState('home', ['floorList'])
  },
  mounted () {
    this.$store.dispatch('home/cateFloorList')
  }
}
</script>

<style lang='less' scoped>

</style>
